home *** CD-ROM | disk | FTP | other *** search
Wrap
property pTotalFileSize global gMediaPath, gSourceList, gFileXtraObj on beginSprite me pTotalFileSize = 0 repeat with x = 1 to gSourceList.count thisFile = gMediaPath & gSourceList[x] n = the number of chars in thisFile if (char n of thisFile = ":") or (char n of thisFile = "\") then folderList = gFileXtraObj.fx_FolderToList(thisFile) repeat with y = 1 to folderList.count if folderList[y] contains "Icon" then next repeat end if newItem = gMediaPath & gSourceList[x] & folderList[y] tempSize = gFileXtraObj.fx_FileGetSize(newItem) pTotalFileSize = pTotalFileSize + tempSize end repeat next repeat end if tempSize = gFileXtraObj.fx_FileGetSize(thisFile) pTotalFileSize = pTotalFileSize + tempSize end repeat set the floatPrecision to 1 pTotalFileSize = float(pTotalFileSize / 1024 / 1024) if gSourceList.count = 1 then temp = "image," else temp = "images," end if put "You have selected " & string(gSourceList.count) && temp & " which will take up approximately " & string(pTotalFileSize) & " Megabytes of space on your hard drive. Please choose from one of the save options below:" into member "SaveText" end